<template>
  <view :style="themeColor">
    <view class="page">
      <view class="flex benben-position-layout flex flex-wrap align-center chooseShenfen_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center justify-between flex-sub chooseShenfen_fd0_0'>
          <view class='flex flex-wrap align-center chooseShenfen_fd0_0_c0'>
            <!-- @tap.stop="handleJumpDiy" data-type="back"
            data-url="1" -->
            <!-- <text class='fu-iconfont2  chooseShenfen_fd0_0_c0_c0'>&#xE794;</text> -->
          </view>
          <view class='flex flex-wrap align-stretch justify-center'>
            <text class='chooseShenfen_fd0_0_c1_c0'>选择身份</text>
          </view>
          <view class='flex flex-wrap align-center justify-end chooseShenfen_fd0_0_c0'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---flex布局flex布局开始-->
      <view class="flex flex-wrap align-center justify-around benben-flex-layout">
        <view class='flex flex-direction flex-wrap align-center self-center justify-center' @click="chooseType('1')">
          <image class='chooseShenfen_fd1_0_c0' mode="aspectFill" :src='STATIC_URL+"182.png"'></image>
          <text :class="typeId==1 ? 'chooseShenfen_fd1_0_c1' : 'chooseShenfen_fd1_1_c1'">我要招聘</text>
        </view>
        <view class='flex flex-direction flex-wrap align-center self-center justify-center' @click="chooseType('0')">
          <image class='chooseShenfen_fd1_0_c0' mode="aspectFill" :src='STATIC_URL+"181.png"'></image>
          <text :class="typeId==0 ? 'chooseShenfen_fd1_0_c1' : 'chooseShenfen_fd1_1_c1'">我要找工作</text>
        </view>
      </view>

      <!---flex布局flex布局结束-->
      <!---flex布局flex布局开始-->

      <view class=" choose-tabb" @click.stop="submit">
        <jyf-parser :html="role_text"></jyf-parser>
        <view class=" role_text"></view>
        <button class='chooseShenfen_fd2_0'>确定</button>
      </view>

      <!---flex布局flex布局结束-->


    </view>
  </view>
</template>
<script>
  export default {
    components: {},


    data() {
      return {
        typeId: '1',
        role_text: ''
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },

    },
    watch: {},
    onLoad(options) {
      this.getData()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      getData() {
        this.$api.post(global.apiUrls.post65f7f038b0f0a, {

        }).then(res => {
          if (res.data.code == 1) {
            this.role_text = res.data.data.role_text
          }
        })
      },
      chooseType(type) {
        this.typeId = type
      },
      submit() {
        uni.navigateTo({
          url: `/pages/dlzc/chooseType/wanshaninfo?leixing=${this.typeId}`
        })
      },
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: var(--benbenbgColor1);
    background-size: 100% auto;
  }

  .chooseShenfen_flex_0 {
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .chooseShenfen_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 700;
    color: #333333;
    line-height: 50rpx;
  }

  .chooseShenfen_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .chooseShenfen_fd0_0_c0 {
    width: 120rpx;
  }

  .chooseShenfen_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .chooseShenfen_fd1_1_c1 {
    background: #F6F7F9;
    border-radius: 44rpx 44rpx 44rpx 44rpx;
    height: 88rpx;
    width: 290rpx;
    line-height: 88rpx;
    text-align: center;
  }

  .chooseShenfen_fd1_0_c1 {
    background: #3A87F9;
    border-radius: 44rpx;
    color: var(--benbenFontColor3);
    width: 290rpx;
    height: 88rpx;
    text-align: center;
    line-height: 88rpx;
  }

  .chooseShenfen_fd1_0_c0 {
    width: 206rpx;
    height: 206rpx;
    margin: 110rpx 0rpx 50rpx 0rpx;
  }

  .role_text {
    text-align: center;
    margin-bottom: 24rpx;
  }

  .choose-tabb {
    position: fixed;
    bottom: calc(100rpx + var(--window-bottom));
    left: 32rpx;
  }

  .chooseShenfen_fd2_0 {
    background: #3A87F9;
    border-radius: 44rpx;
    width: 686rpx;
    line-height: 88rpx;
    font-size: 32rpx;
    color: #fff;
    height: 88rpx;
    // position: fixed;
    // bottom: calc(100rpx + var(--window-bottom));
    // left: 32rpx;
  }
</style>
